function [AcqSettings,TrackingSettings] = preRunStandardReceiver(DevSettings)
%% Processing settings ===========================================
% Number of milliseconds to be processed used 36000 + any transients (see
% below - in Nav parameters) to ensure nav subframes are provided
%% read settings of bladerf
Fs = DevSettings.Fs;
IF = DevSettings.Fc-1575.42e6;
ms2Process        = 60000;        %[ms]
ms2Skip           = 1000;        %[ms]
dataType = DevSettings.dataType;
eval(['Tempa=',dataType,'(0);']);
Info_A = whos('Tempa');
BytesPerData = Info_A.bytes;
skipNumberOfBytes = ms2Skip*Fs*BytesPerData*1e-3;
%% Acquisition settings ==========================================
% List of satellites to look for. Some satellites can be excluded to speed
% up acquisition
% Intermediate, sampling and code frequencies
AcqSettings.samplingFreq = Fs;
AcqSettings.codeLength   = 1023;
AcqSettings.IF           = IF;
AcqSettings.acqSearchBand = 10;
AcqSettings.acqSatelliteList = 1:32;
AcqSettings.acq_Acc_ms_No = 5;
AcqSettings.OnlyI = false;
AcqSettings.codeFreqBasis = 1.023e6;
AcqSettings.acqThreshold = 2;
AcqSettings.numberOfChannels = 8;
%% Tracking loops settings =======================================
%% Fields of settings used
TrackingSettings.msToProcess = ms2Process;
TrackingSettings.skipNumberOfBytes = skipNumberOfBytes;
TrackingSettings.numberOfChannels = 8;
TrackingSettings.codeFreqBasis = 1.023e6;
TrackingSettings.samplingFreq = Fs;
TrackingSettings.codeLength = 1023;
TrackingSettings.Pa = 5e-3;
TrackingSettings.BytesPerData = BytesPerData;
% Code tracking loop parameters
TrackingSettings.dllDampingRatio         = 0.7;
TrackingSettings.dllNoiseBandwidth       = 2;       %[Hz]
TrackingSettings.dllCorrelatorSpacing    = 0.5;     %[chips]
% Carrier tracking loop parameters
TrackingSettings.pllDampingRatio         = 0.7;
TrackingSettings.pllNoiseBandwidth       = 25;      %[Hz]
TrackingSettings.dataType                = dataType;
TrackingSettings.IsBlanking              = false;
end

